import request from '@/utils/request'

// 查询实验室专业组列表
export function professional(query) {
  return request({
    url: '/dict/professional/list',
    method: 'get',
    params: query
  })
}

// 新增实验室专业组
export function professionalAdd(data) {
  return request({
    url: '/dict/professional',
    method: 'post',
    data: data
  })
}

// 查询实验室专业组单条详情
export function professionalEdit(params) {
  return request({
    url: '/dict/professional/'+params,
    method: 'get',
  })
}

// 修改实验室专业组信息
export function professionalUpdate(data) {
  return request({
    url: '/dict/professional',
    method: 'put',
    data: data
  })
}

// 删除实验室专业组信息
export function professionalDel(id) {
  return request({
    url: '/dict/professional/' + id,
    method: 'delete'
  })
}

// 导出实验室专业组信息
export function professionalExport(params) {
  return request({
    url: '/dict/professional/export',
    method: 'get',
  })
}